home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14128 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  820 b 

  1. Path: leroy.cc.uregina.ca!ibp2
  2. From: ibp2@leroy.cc.uregina.ca (Chris Gerber)
  3. Newsgroups: comp.lang.c
  4. Subject: Vector Graphics
  5. Date: 10 Apr 1996 16:40:41 GMT
  6. Organization: University of Regina
  7. Message-ID: <4kgoa9$i12@sue.cc.uregina.ca>
  8. NNTP-Posting-Host: leroy.cc.uregina.ca
  9. X-Newsreader: Tin 1.1 PL4
  10.  
  11. Hello, I'm trying to do vector (3d) graphics, and I have all the math for
  12. doing transformations and shading and whatnot, but it all uses x,y,z
  13. addressing, which is fine, but I need to find a way to convert a vector
  14. into an x,y screen co-ordinate so I can draw it.  If anyone has some math
  15. algorythm for that, or a function like:
  16.  
  17. void vector2point(VECTOR *p3d, int *x, int *y)
  18.  
  19. or something, I'd be very appreciative.  Send email too, please (my
  20. newserver kicks out for random intervals).  Thanks in advance.
  21. -chris
  22.  
  23.